﻿using Domain.Entitys.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepositorys.DB
{
    public interface IDb_MeasureRepository
    {
        /// <summary>
        /// 分页查询、条件查询
        /// </summary>
        /// <param name="Measure_code">编码</param>
        /// <param name="Measure_name">昵称</param>
        /// <param name="currentPage">当前页</param>
        /// <param name="pageSize">查几条</param>
        /// <returns></returns>
        List<Db_Measure> SelectDb_MeasureFYWHERE(string Measure_code, string Measure_name, int currentPage, int pageSize);

        /// <summary>
        /// 查询总条数
        /// </summary>
        /// <param name="Measure_code">编码</param>
        /// <param name="Measure_name">昵称</param>
        /// <returns></returns>
        int Db_MeasureCount(string Measure_code,string Measure_name);

        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="db_Measure">删除</param>
        /// <returns></returns>
        Task<int> Db_MeasureDelete(Db_Measure db_Measure);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="db_Measure">添加</param>
        /// <returns></returns>
        Task<int> Db_MeasureAdd(Db_Measure db_Measure);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="db_Measure">修改</param>
        /// <returns></returns>
        Task<int> Db_MeasureUpdate(Db_Measure db_Measure);
    }
}
